package com.hxd.mall.network.service

import com.hexin.locallibrary.network.OkHttpManager

/**
 * 通用网络接口接口管理api
 */
object ManagerFunctionApi {
    /**
     * 账号相关
     */
    var mIAccountFunctionApi = OkHttpManager.loadApi(IAccountFunctionApi::class.java)
    /**
     * 配置相关，升级或获取域名等
     */
    var mIConfigureFunctionApi = OkHttpManager.loadApi(IConfigureFunctionApi::class.java)
    var mIMeFunctionApi = OkHttpManager.loadApi(IMeFunctionApi::class.java)

    var mICollagePageApi = OkHttpManager.loadApi(ICollagePageApi::class.java)

    fun reLoad() {
        mIAccountFunctionApi = OkHttpManager.loadApi(IAccountFunctionApi::class.java)
        mIConfigureFunctionApi = OkHttpManager.loadApi(IConfigureFunctionApi::class.java)
        mIMeFunctionApi = OkHttpManager.loadApi(IMeFunctionApi::class.java)
        mICollagePageApi = OkHttpManager.loadApi(ICollagePageApi::class.java)
    }
}